<template>
    <div class="header">
        <i class="back" @click="handleback"> &lt; </i>
        <slot></slot>
    </div>
</template>
<script>
export default {
  data () {
    return {

    }
  },
  methods: {
    handleback () {
      this.$router.back()
    }
  }
}
</script>
<style lang="scss" scoped>
.header {
    // -webkit-overflow-scrolling: touch;
    position: fixed;
    top: 0;
    left: 0;
    background-color: white;
    text-align: center;
    height: 44px;
    z-index: 100;
    width: 100%;
    line-height: 44px;
}
.back{
        position: fixed;
        top: 14;
        left: 14px;
        width: 30px;
        border-radius: 50%;
        height: 30px;
        line-height: 44px;
        background-color: rgba($color: #fff, $alpha: 0.4);
    }
</style>
